package com.hackordie.daos;

import org.springframework.jdbc.core.JdbcTemplate;

public abstract class ACommonDao<T> {

	protected JdbcTemplate jdbcTemplate;

	public void setJdbcTemplate(final JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	public abstract boolean create(final T entity);

	public abstract boolean delete(final int id);

	public abstract boolean update(final T entity);
	
	public abstract T[] getAll();
	
	public abstract T get(final int id);
	
}
